package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.vo.PageBeanVo;

/**
 * @author Guanxing
 * @date 2021/9/22
 */
public interface MovementService {
    //发布动态
    void saveMovement(Movement movement);

    //根据id查询我的动态
    PageBeanVo findMovementByUserId(Integer pageNum, Integer pageSize, Long userId);

    //查询好友动态
    PageBeanVo findFriendMovement(Integer page, Integer pageSize, Long userId);

    //查询推荐好友动态
    PageBeanVo findRecommendMovement(Integer pageNum, Integer pageSize, Long loginUserId);

    //单条动态
    Movement findMovementByMovementId(String movementId);

    //查询动态列表
    PageBeanVo findMovementsByUserIdAndState(Integer pageNumber, Integer pageSize, Long uid, Integer stateInt);

    //修改
    void updateMovement(Movement movement);

}
